#ifndef CEVENTRECEIVER_H_INCLUDED
#define CEVENTRECEIVER_H_INCLUDED

#include "LON.h"

class CGameManager;

class CEventReceiver : public IEventReceiver
{
public:
	virtual bool OnEvent(const SEvent& event);

  // This is used to check whether a key is being held down
	virtual bool IsKeyDown(EKEY_CODE keyCode) const;
  bool IsMouseDown(s32 button);

	CEventReceiver(CGameManager* manager = NULL);


private:
  CGameManager* mgr;

	bool KeyIsDown[KEY_KEY_CODES_COUNT];
  bool MouseIsClicked[3];
  bool MouseIsDown[3];
};

#endif // CEVENTRECEIVER_H_INCLUDED
